package com.myway.dao;


import com.myway.dto.param.OrderParam;
import com.myway.pojo.FlyOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlyOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlyOrder record);

    int insertSelective(FlyOrder record);

    FlyOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlyOrder record);

    int updateByPrimaryKey(FlyOrder record);

    //FlyOrder selectOrderDetailByOrderNo(String orderNo);
    /**
     * rdh新增方法
     */
    FlyOrder getFlyOrderById(@Param("orderId")String orderId);


    /*NEW MAPPER FOR MS*/
    /*START*/

    /*条件查询机票订单*/
    List<FlyOrder> selectByManyInf(OrderParam param);

    /*App 条件查询机票订单*/
    List<FlyOrder> appSelectOrderByParam(OrderParam param);

    /*统计订单总数*/
    int countSearch(OrderParam param);

    /*根据firstTransId查询订单*/
    List<FlyOrder> getOrderByFirstTransId(String transId);

    /** * 获取最大发票号 * @return*/
    String getMaxInvoiceNumber();

    /** 获取待支付超时订单* */
    List<FlyOrder> getFlyOrderByTout();

    /**获取支付中超过10分钟的订单**/
    List<FlyOrder> handleInPaymentOrder();

    /*END*/
}